# -*- coding: utf-8 -*-
"""
@Time : 2024/9/29 21:44
@Author : ChenXiaoliang
@Email : middlegod@sina.com
@File : generate_cover_pic.py
"""
from moviepy.editor import VideoFileClip


def generate_cover_pic():
    """
    获取短视频上传平台后的横向、竖向封面图片生成
    :return:
    """
    video_clip = VideoFileClip('short_video_demo.mp4')
    video_clip.save_frame('short_video_cover_pic.jpg', t=1.68)
